<?php
include ('../inicio/conectarse.php');
session_start();

$id = $_GET['q'];

//$qry = "DELETE FROM materias_primas WHERE ID_MATERIA_PRIMA = ".$id;
//$result = mysql_query($qry);

$result = mysql_query("SELECT * FROM productos WHERE id_producto=".$id);
$result_array = mysql_fetch_array($result);
header("Content-Type: image/jpeg");
echo '<h2>Haz Elegido '.$result_array['NOMBRE'].'</h2> <img src="../../images/'.$result_array['IMAGEN'].'"/>';

?>

